# 这个文件主要用来模拟比特币交易发起节点的行为，从而测试区块链本身的功能
import socket


if __name__ == '__main__':
    target_node = ("127.0.0.1", 8080)
    record = {"request": "record", "data": "张三支付李四1元"}
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    s.sendto(str(record).encode("utf-8"), target_node)

